net: Use ARRAY_SIZE at appropriate places
Use ARRAY_SIZE instead of having similar implementation in each drivers.
The NUMELEMS defined in drivers/net/npe/include/IxOsalTypes.h is not used
at all, so this patch removes it instead of converting it to use ARRAY_SIZE.
Signed-off-by: Axel Lin <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Ben Warren <[email protected]>
Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: TsiChungLiew <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: York Sun <[email protected]>